package com.ai.module.user.controller;

import com.ai.module.chat.common.ano.NoAuth;
import com.ai.module.user.domain.req.GroupRobotReq;
import com.ai.module.user.domain.vo.RobotGroupVo;
import com.ai.module.user.service.RobotGroupService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author: MrHe
 * @create: 2024-01-08 23:47
 * @description: 查询用户相关的AI数据信息
 **/
@RestController
@RequestMapping("/member/group")
@Api(tags = "用户AI信息")
public class RobotGroupController {

    @Autowired
    private RobotGroupService robotGroupService;

    @GetMapping
    @ApiOperation("查询所有的标签")
    @NoAuth
    public List<String> findAll(){

       return robotGroupService.findLabels();
    }

    @GetMapping("userLabels")
    @ApiOperation("查询所有的标签")
    @NoAuth
    public List<RobotGroupVo> userLabels(){

        return robotGroupService.userLabels();
    }

    @PostMapping("updateRobot")
    @ApiOperation("查询所有的标签")
    public void updateRobot(@RequestBody GroupRobotReq groupRobotReq){
        robotGroupService.updateRobot(groupRobotReq);
    }



}
